
import 'package:dio/dio.dart';
import 'package:retrofit/retrofit.dart';
import 'package:wechat_manager/network/model/base/access_token_model.dart';

part 'base_service.g.dart';

@RestApi()
abstract class BaseService {
  factory BaseService(Dio dio, {String baseUrl}) = _BaseService;

  ///获取稳定版接口调用凭据
  @GET("/token")
  Future<AccessTokenModel> getAccessToken(@Queries() Map<String, dynamic> map);

  ///获取稳定版接口调用凭据
  @POST("/stable_token")
  Future<AccessTokenModel> getStableAccessToken(@Body() Map<String, dynamic> map);

}